/* 微信风格的全局样式 - 轻松明快版 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f7fa;
  color: #333;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* 聊天气泡样式 */
.message-bubble {
  position: relative;
  border-radius: 18px;
  padding: 12px 16px;
  max-width: 65%;
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.message-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.message-bubble-self {
  background-color: #a1e759;
  background-image: linear-gradient(135deg, #a1e759, #7ed957);
  color: #1a1a1a;
  margin-left: auto;
  border-radius: 18px 4px 18px 18px;
}

.message-bubble-other {
  background-color: #ffffff;
  color: #1a1a1a;
  margin-right: auto;
  border-radius: 4px 18px 18px 18px;
}

/* 按钮样式 */
button {
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 输入框样式 */
input, textarea {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 14px;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  border-color: transparent;
  border: none;
  box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.2);
  outline: none;
}
